

def _getMatrix():
   matrix = []
   for i in range(3):
      row = [float(num) for num in input().strip().split(" ")]
      matrix.append(row)
   return matrix

matrix = _getMatrix()


def solve(m):
    n = len(m)  # 矩阵的行数

    for i in range(n):
        for j in range(i + 1, n):
            factor = m[j][i] / m[i][i]
            for k in range(i, n + 1):
                m[j][k] -= factor * m[i][k]
    x = [0] * n
    for i in range(n - 1, -1, -1):
        x[i] = m[i][-1]
        for j in range(i + 1, n):
            x[i] -= m[i][j] * x[j]
        x[i] /= m[i][i]

    return x



ans=solve(matrix)
for num in ans:
    if(abs(num)<0.00001):
        num=0
    print("%.3f"%num, end=" ")